package com.brrbaii.common;

public class StrConstants {
    /**
     * SessionAttribute:用户登录标识
     */
    public static final String USER_LOGIN_STATE = "userLoginState";
    /**
     * 管理员
     */
    public static final int ADMIN_ROLE = 1;
    /**
     * 普通用户
     */
    public static final int DEFAULT_ROLE = 0;
    /**
     * 中文数字英文正则
     */
    public static final String USERNAME_VERIFICATION_PATTERN = "^[\u4E00-\u9FA5A-Za-z0-9_]+$";

    public static final Integer MIN_USER_NAME = 2;

    public static final Integer MIN_USER_PASSWORD = 6;

    public static final Integer USER_NOT_EXIST_CODE = 0;

    public static final String PARAMS_IS_NULL = "参数为空";
    public static final String USERNAME_TOO_SHORT = "用户名过短";
    public static final String PASSWORD_TOO_SHORT = "用户密码过短";
    public static final String INVALID_NAME = "存在非法字符";
    public static final String USER_ALREADY_EXIST = "用户已存在";
    public static final String CHECK_PASSWORD_NOT_SAME = "两次密码不一致";
    public static final String USER_NOT_EXIST = "用户不存在";
    public static final String CHECK_USER_EXIST = "用户名或密码错误";

}